package com.bite.demo.service;

import com.bite.demo.model.UserInfo;
import jakarta.annotation.Resource;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;

@Service
public class UserService {
    //@Qualifier("userInfo1")
    //@Autowired
    @Resource(name = "userInfo2")
    private UserInfo userInfo;
    public void sayHi(){
        System.out.println("hi,UserService....");
        System.out.println(userInfo);
    }
}
